package com.zxl.designpattern.creator.factory.abstractpattern;

import com.zxl.designpattern.creator.factory.pojo.HuaweiLaptop;
import com.zxl.designpattern.creator.factory.pojo.HuaweiPhone;
import com.zxl.designpattern.creator.factory.pojo.Laptop;
import com.zxl.designpattern.creator.factory.pojo.Phone;

/**
 * @author zxl
 * @version 1.0
 * @description 华为工厂
 * @date 2025/5/31 20:14
 */
public class HuaweiFactory implements IAbstractFactory{
    @Override
    public Phone createPhone() {
        return new HuaweiPhone();
    }

    @Override
    public Laptop createLaptop() {
        return new HuaweiLaptop();
    }
}
